import { lazy } from "react";
import {createBrowserRouter} from "react-router-dom"

const Home=lazy(()=> import("../pages/Home/Home"));
const Login=lazy(()=> import("../pages/Login/Login"));
const User=lazy(()=> import("../pages/User/User"));
const Tabbar=lazy(()=> import("../pages/Tabbar/Tabbar"))

let routes=createBrowserRouter([
    {
        path:"/",
        element:<Home></Home>
    },
    {
        path:"/login",
        element:<Login></Login>
    },
    {
        path:"/user",
        element:<User></User>
    },
])
export default routes